<!doctype html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8">
    <meta name="author" content="Fresns" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="generator" content="Bootstrap 5">
    <title>列表模块介绍</title>
    <link rel="stylesheet" href="../../assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../assets/css/bootstrap-icons.css">
    <link rel="stylesheet" href="../../assets/css/fresns.css">
    <style>
        .bg-secondary {
            background-color: #F0F2F5!important;
        }
        .bg-light {
            background-color: #ffffff!important;
        }
    </style>
</head>

<body>
    <!--页头-->
    <header>
        <div class="text-center mt-5"><img src="../../assets/images/fresns-icon.png" height="80"></div>
    </header>

    <div class="container-fluid mb-5">
        <div class="text-center my-5">
            <div class="text-center mt-3">
                <div class="btn-group">
                    <a href="../style/comment.html" class="btn btn-outline-primary">样式</a>
                    <a href="../code/comment.html" class="btn btn-outline-primary">结构</a>
                    <a href="comment.html" class="btn btn-outline-primary active">说明</a>
                </div>
            </div>
        </div>
        <ul class="nav nav-tabs justify-content-center">
            <li class="nav-item"><a class="nav-link" href="../index.html">首页</a></li>
            <li class="nav-item"><a class="nav-link" href="member.html">成员列表</a></li>
            <li class="nav-item"><a class="nav-link" href="group.html">小组列表</a></li>
            <li class="nav-item"><a class="nav-link" href="hashtag.html">话题列表</a></li>
            <li class="nav-item"><a class="nav-link" href="post.html">帖子列表</a></li>
            <li class="nav-item"><a class="nav-link active" href="comment.html">评论列表</a></li>
            <li class="nav-item"><a class="nav-link" href="extend.html">扩展内容模板</a></li>
            <li class="nav-item"><a class="nav-link" href="implant.html">植入内容模板</a></li>
        </ul>
    </div>

    <div class="container-md clearfix">
        <div class="position-relative shadow-sm p-5 mb-5 bg-body rounded">
            <div class="position-absolute top-0 start-0"><span class="badge bg-warning text-dark">评论列表模板 &lt;template name="comment"&gt;</span></div>
            <div class="position-absolute top-0 end-0"><span class="badge bg-secondary text-dark">获取评论[列表] /api/fresns/comment/lists<br>获取标记内容[列表] /api/fresns/member/markLists</span></div>
            <span class="badge bg-success me-2 mb-2">pid</span>
            <span class="badge bg-success me-2 mb-2">cid</span>
            <span class="badge bg-success me-2 mb-2">commentName</span>
            <span class="badge bg-success me-2 mb-2">content</span>
            <span class="badge bg-success me-2 mb-2">sticky</span>
            <span class="badge bg-success me-2 mb-2">time</span>
            <span class="badge bg-success me-2 mb-2">timeFormat</span>
            <span class="badge bg-success me-2 mb-2">editTime</span>
            <span class="badge bg-success me-2 mb-2">editTimeFormat</span><br>
            <span class="badge bg-success me-2 mb-2">likeCount</span>
            <span class="badge bg-success me-2 mb-2">followCount</span>
            <span class="badge bg-success me-2 mb-2">shieldCount</span>
            <span class="badge bg-success me-2 mb-2">commentCount</span>
            <span class="badge bg-success me-2 mb-2">commentLikeCount</span>
            <span class="badge bg-success me-2 mb-2">post -> pid</span>
            <span class="badge bg-success me-2 mb-2">post -> title</span>
            <span class="badge bg-success me-2 mb-2">post -> content</span>
            <span class="badge bg-success me-2 mb-2">post -> status</span>
            <!--扩展图标-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（扩展图标）</span></div>
                <span class="badge bg-primary mt-3 me-2">icons > label = {未找到该参数}</span>
                <hr>
                <span class="badge bg-primary me-2">icons > label = {有该参数}</span>
                <code>&lt;img src="<kbd>icons > label</kbd>"&gt;</code>
            </div>
            <!--摘要状态-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（浏览全文按钮）</span></div>
                <span class="badge bg-primary mt-3 me-2">brief = 0</span>
                <hr>
                <span class="badge bg-primary me-2">brief = 1</span>
                <code>&lt;a href="/comment/<kbd>cid</kbd>"&gt;<kbd>languages > commentBtn</kbd>&lt;/a&gt;</code>
            </div>
            <!--关注功能-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（关注功能）</span></div>
                <span class="badge bg-primary mt-3 me-2">followSetting = false</span>
                <hr>
                <span class="badge bg-primary me-2">followSetting = true</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">followStatus = 0</span>
                    <code>&lt;img src="<span class="badge bg-primary">followIcon -> default = {空} <kbd>/images/follow.png</kbd></span> <span class="badge bg-primary">followIcon -> default = {有值} <kbd>followIcon -> default</kbd></span>"&gt;</code>
                    <hr>
                    <span class="badge bg-primary me-2">followStatus = 1</span>
                    <code>&lt;img src="<span class="badge bg-primary">followIcon -> pre = {空} <kbd>/images/follow_pre.png</kbd></span> <span class="badge bg-primary">followIcon -> pre = {有值} <kbd>followIcon -> pre</kbd></span>"&gt;</code>
                </div>
            </div>
            <!--点赞功能-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（点赞功能）</span></div>
                <span class="badge bg-primary mt-3 me-2">likeSetting = false</span>
                <hr>
                <span class="badge bg-primary me-2">likeSetting = true</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">likeStatus = 0</span>
                    <code>&lt;img src="<span class="badge bg-primary">likeIcon -> default = {空} <kbd>/images/like.png</kbd></span> <span class="badge bg-primary">likeIcon -> default = {有值} <kbd>likeIcon -> default</kbd></span>"&gt;</code>
                    <hr>
                    <span class="badge bg-primary me-2">likeStatus = 1</span>
                    <code>&lt;img src="<span class="badge bg-primary">likeIcon -> pre = {空} <kbd>/images/like_pre.png</kbd></span> <span class="badge bg-primary">likeIcon -> pre = {有值} <kbd>likeIcon -> pre</kbd></span>"&gt;</code>
                </div>
            </div>
            <!--屏蔽功能-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（屏蔽功能）</span></div>
                <span class="badge bg-primary mt-3 me-2">shieldSetting = false</span>
                <hr>
                <span class="badge bg-primary me-2">shieldSetting = true</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">shieldStatus = 0</span>
                    <code>&lt;img src="<span class="badge bg-primary">shieldIcon -> default = {空} <kbd>/images/shield.png</kbd></span> <span class="badge bg-primary">shieldIcon -> default = {有值} <kbd>shieldIcon -> default</kbd></span>"&gt;</code>
                    <hr>
                    <span class="badge bg-primary me-2">shieldStatus = 1</span>
                    <code>&lt;img src="<span class="badge bg-primary">shieldIcon -> pre = {空} <kbd>/images/shield_pre.png</kbd></span> <span class="badge bg-primary">shieldIcon -> pre = {有值} <kbd>shieldIcon -> pre</kbd></span>"&gt;</code>
                </div>
            </div>
            <!--作者信息-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（作者信息）</span></div>
                <span class="badge bg-primary mt-3 me-2">deactivate = true</span>
                <span class="badge bg-success me-2">avatar</span>
                <hr>
                <span class="badge bg-primary me-2">deactivate = false</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">anonymous = true</span>
                    <span class="badge bg-success me-2 mb-2">avatar</span>
                    <hr>
                    <span class="badge bg-primary me-2">anonymous = false</span>
                    <span class="badge bg-success me-2 mb-2">member -> mid</span>
                    <span class="badge bg-success me-2 mb-2">member -> mname</span>
                    <span class="badge bg-success me-2 mb-2">member -> nickname</span>
                    <span class="badge bg-success me-2 mb-2">member -> avatar</span>
                    <span class="badge bg-success me-2 mb-2">member -> signature</span>
                    <!--是否为帖子作者-->
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                        <span class="badge bg-primary mt-3 me-2">member -> isAuthor = 0</span>
                        <hr>
                        <span class="badge bg-primary me-2">member -> isAuthor = 1</span>
                        <code><kbd>languages > author</kbd></code>
                    </div>
                    <!--作者头像挂件-->
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                        <span class="badge bg-primary mt-3 me-2">member -> decorate = {空}</span>
                        <hr>
                        <span class="badge bg-primary me-2">member -> decorate = {有值}</span>
                        <code>&lt;img src="<kbd>member -> decorate</kbd>"&gt;</code>
                    </div>
                    <!--作者昵称颜色-来源主角色颜色值-->
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                        <span class="badge bg-primary mt-3 me-2">member -> nicknameColor = {空}</span>
                        <hr>
                        <span class="badge bg-primary me-2">member -> nicknameColor = {有值}</span>
                        <code>style="color:<kbd>member -> nicknameColor</kbd>;"</code>
                    </div>
                    <!--作者主角色名称-->
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                        <span class="badge bg-primary mt-3 me-2">member -> roleName = {空}</span>
                        <hr>
                        <span class="badge bg-primary me-2">member -> roleName = {有值}</span>
                        <code>&lt;span class="badge bg-success"&gt;<kbd>member -> roleName</kbd>&lt;/span&gt;</code>
                    </div>
                    <!--作者主角色图标-->
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                        <span class="badge bg-primary mt-3 me-2">member -> roleIcon = {空}</span>
                        <hr>
                        <span class="badge bg-primary me-2">member -> roleIcon = {有值}</span>
                        <code>&lt;img src="<kbd>member -> roleIcon</kbd>"&gt;</code>
                    </div>
                    <!--作者认证信息-->
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                        <span class="badge bg-primary mt-3 me-2">member -> verifiedStatus = 1</span>
                        <hr>
                        <span class="badge bg-primary me-2">member -> verifiedStatus = 2</span>
                        <code>&lt;img src="<kbd>member -> verifiedIcon</kbd>"&gt;</code>
                    </div>
                    <!--作者扩展图标-->
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-danger">循环列表</span></div>
                        <div class="mt-3"><code>&lt;img src="<kbd>member -> icons -> icon</kbd>" alt="<kbd>member -> icons -> name</kbd>"&gt;</code></div>
                    </div>
                </div>
            </div>
            <!--热评信息-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（热评信息）</span></div>
                <span class="badge bg-primary mt-3 me-2">commentSetting -> status = false</span>
                <hr>
                <span class="badge bg-primary me-2">commentSetting -> status = true</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">commentSetting -> count 减 status = 0</span>
                    <hr>
                    <span class="badge bg-primary me-2">commentSetting -> count 减 status ≥ 1 （大于等于）</span>
                    <code><kbd>languages -> viewComment</kbd> <kbd>commentSetting -> count</kbd></code>
                </div>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-danger">循环列表</span></div>
                    <span class="badge bg-primary mt-3 me-2">评论的回复内容 commentSetting -> lists</span>
                </div>
            </div>
            <!--回复给谁的信息-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（replyTo）</span></div>
                <span class="badge bg-primary mt-3 me-2">replyTo -> cid = {空}</span>
                <hr>
                <span class="badge bg-primary me-2">replyTo -> cid = {有值}</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">replyTo -> deactivate = true</span>
                    <span class="badge bg-success mt-3 me-2">replyTo -> cid</span>
                    <hr>
                    <span class="badge bg-primary me-2">replyTo -> deactivate = false</span>
                    <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                        <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                        <span class="badge bg-primary mt-3 me-2">replyTo -> anonymous = true</span>
                        <span class="badge bg-success mt-3 me-2">replyTo -> cid</span>
                        <hr>
                        <span class="badge bg-primary me-2">replyTo -> anonymous = false</span>
                        <span class="badge bg-success mt-3 me-2">replyTo -> cid</span>
                        <span class="badge bg-success mt-3 me-2">replyTo -> mid</span>
                        <span class="badge bg-success mt-3 me-2">replyTo -> mname</span>
                        <span class="badge bg-success mt-3 me-2">replyTo -> nickname</span>
                    </div>
                </div>
            </div>
            <!--位置信息-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（位置信息）</span></div>
                <span class="badge bg-primary mt-3 me-2">location -> isLbs = 0</span>
                <hr>
                <span class="badge bg-primary me-2">location -> isLbs = 1</span>
                <span class="badge bg-success mt-3 me-2 mb-2">location -> mapId</span>
                <span class="badge bg-success me-2 mb-2">location -> latitude</span>
                <span class="badge bg-success me-2 mb-2">location -> longitude</span>
                <span class="badge bg-success me-2 mb-2">location -> scale</span>
                <span class="badge bg-success me-2 mb-2">location -> poi</span>
                <span class="badge bg-success me-2 mb-2">location -> poiId</span>
                <span class="badge bg-success me-2 mb-2">location -> distance</span>
            </div>
            <span class="badge bg-success me-2 mb-2">attachCount -> images</span>
            <span class="badge bg-success me-2 mb-2">attachCount -> videos</span>
            <span class="badge bg-success me-2 mb-2">attachCount -> audios</span>
            <span class="badge bg-success me-2 mb-2">attachCount -> docs</span>
            <span class="badge bg-success me-2 mb-2">attachCount -> extends</span>
            <!--文件-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-danger">循环列表（附件）</span></div>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">files -> type = 1</span>
                    <span class="badge bg-success me-2 mt-3 mb-2">files -> fid</span>
                    <span class="badge bg-success me-2 mb-2">files -> name</span>
                    <span class="badge bg-success me-2 mb-2">files -> extension</span>
                    <span class="badge bg-success me-2 mb-2">files -> size</span>
                    <span class="badge bg-success me-2 mb-2">files -> imageWidth</span>
                    <span class="badge bg-success me-2 mb-2">files -> imageHeight</span>
                    <span class="badge bg-success me-2 mb-2">files -> imageLong</span>
                    <span class="badge bg-success me-2 mb-2">files -> imageRatioUrl</span>
                    <span class="badge bg-success me-2 mb-2">files -> imageSquareUrl</span>
                    <span class="badge bg-success me-2 mb-2">files -> imageBigUrl</span>
                    <span class="badge bg-success me-2 mb-2">files -> moreJson</span>
                    <hr>
                    <span class="badge bg-primary me-2">files -> type = 2</span>
                    <span class="badge bg-success me-2 mb-2">files -> fid</span>
                    <span class="badge bg-success me-2 mb-2">files -> name</span>
                    <span class="badge bg-success me-2 mb-2">files -> extension</span>
                    <span class="badge bg-success me-2 mb-2">files -> size</span>
                    <span class="badge bg-success me-2 mb-2">files -> videoTime</span>
                    <span class="badge bg-success me-2 mb-2">files -> videoCover</span>
                    <span class="badge bg-success me-2 mb-2">files -> videoGif</span>
                    <span class="badge bg-success me-2 mb-2">files -> videoUrl</span>
                    <span class="badge bg-success me-2 mb-2">files -> moreJson</span>
                    <hr>
                    <span class="badge bg-primary me-2">files -> type = 3</span>
                    <span class="badge bg-success me-2 mb-2">files -> fid</span>
                    <span class="badge bg-success me-2 mb-2">files -> name</span>
                    <span class="badge bg-success me-2 mb-2">files -> extension</span>
                    <span class="badge bg-success me-2 mb-2">files -> size</span>
                    <span class="badge bg-success me-2 mb-2">files -> audioTime</span>
                    <span class="badge bg-success me-2 mb-2">files -> audioUrl</span>
                    <span class="badge bg-success me-2 mb-2">files -> moreJson</span>
                    <hr>
                    <span class="badge bg-primary me-2">files -> type = 4</span>
                    <span class="badge bg-success me-2 mb-2">files -> fid</span>
                    <span class="badge bg-success me-2 mb-2">files -> name</span>
                    <span class="badge bg-success me-2 mb-2">files -> extension</span>
                    <span class="badge bg-success me-2 mb-2">files -> size</span>
                    <span class="badge bg-success me-2 mb-2">files -> docPreviewUrl</span>
                    <span class="badge bg-success me-2 mb-2">files -> moreJson</span>
                </div>
            </div>
            <!--扩展内容-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-danger">循环列表（扩展内容）</span></div>
                <div class="mt-3"><code>&lt;template name="extend1"&gt;</code></div>
            </div>
            <!--评论按钮信息-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（评论按钮）</span></div>
                <span class="badge bg-primary mt-3 me-2">commentBtn -> status = 0</span>
                <hr>
                <span class="badge bg-primary me-2">commentBtn -> status = 1</span>
                <span class="badge bg-success me-2 mb-2">commentBtn -> name</span>
                <span class="badge bg-success me-2 mb-2">commentBtn -> url</span>
            </div>
            <!--管理扩展-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-danger">循环列表（管理扩展）</span></div>
                <span class="badge bg-success me-2 mt-3 mb-2">manages -> plugin</span>
                <span class="badge bg-success me-2 mb-2">manages -> name</span>
                <span class="badge bg-success me-2 mb-2">manages -> icon</span>
                <span class="badge bg-success me-2 mb-2">manages -> url</span>
            </div>
            <!--编辑功能-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句（编辑功能）</span></div>
                <span class="badge bg-primary mt-3 me-2">editStatus -> isMe = 0</span>
                <hr>
                <span class="badge bg-primary me-2">editStatus -> isMe = 1</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">editStatus -> canEdit = 0</span>
                    <hr>
                    <span class="badge bg-primary me-2">editStatus -> canEdit = 1</span>
                    <code>&lt;img src="<kbd>languages > edit</kbd>"&gt;</code>
                </div>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">editStatus -> canDelete = 0</span>
                    <hr>
                    <span class="badge bg-primary me-2">editStatus -> canDelete = 1</span>
                    <code>&lt;img src="<kbd>languages > delete</kbd>"&gt;</code>
                </div>
            </div>
        </div>
    </div>

    <footer class="text-center" style="margin-top:100px;">
        <div><img src="../../assets/images/fresns-logo.png" height="30"></div>
        <p class="mt-3 mb-5"><a href="https://tangjie.me" target="_blank">唐杰出品</a></p>
    </footer>

    <script src="../../assets/javascript/bootstrap.bundle.min.js"></script>
    <script src="../../assets/javascript/fresns.js"></script>
</body>

</html>